﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPageMain.Master" Inherits="System.Web.Mvc.ViewPage<estudent.Models.Poucuje>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="InnerRightContent" runat="server">

    <h1>Urejanje profesorjev predmeta</h1>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Polja</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.sProfesor3) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.sProfesor3, String.Format("{0:F}", Model.sProfesor3)) %>
                <%: Html.ValidationMessageFor(model => model.sProfesor3) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.sPredmeta) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.sPredmeta, String.Format("{0:F}", Model.sPredmeta)) %>
                <%: Html.ValidationMessageFor(model => model.sPredmeta) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.sProfesor2) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.sProfesor2, String.Format("{0:F}", Model.sProfesor2)) %>
                <%: Html.ValidationMessageFor(model => model.sProfesor2) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.sProfesor1) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.sProfesor1, String.Format("{0:F}", Model.sProfesor1)) %>
                <%: Html.ValidationMessageFor(model => model.sProfesor1) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.zacetnoLeto) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.zacetnoLeto, String.Format("{0:g}", Model.zacetnoLeto)) %>
                <%: Html.ValidationMessageFor(model => model.zacetnoLeto) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.koncnoLeto) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.koncnoLeto, String.Format("{0:g}", Model.koncnoLeto)) %>
                <%: Html.ValidationMessageFor(model => model.koncnoLeto) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.veljavnost) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.veljavnost) %>
                <%: Html.ValidationMessageFor(model => model.veljavnost) %>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="JQueryContent" runat="server">
</asp:Content>

